/**
 * 
 */
package cn.kuaipai.mcard.dao.ibatis;

import org.springframework.stereotype.Repository;

import cn.kuaipai.mcard.dao.AuthorizeDao;
import cn.kuaipai.mcard.dao.BaseSqlMapClientDaoSupport;
import cn.kuaipai.mcard.model.domain.Authorize;

/**
 * @author zy
 */
@Repository(value="authorizeDao")
public class AuthorizeDaoiBatis extends BaseSqlMapClientDaoSupport implements AuthorizeDao {
	@Override
	public Authorize getAuthorizeByOpenId(String openid) {
		return (Authorize) getSqlMapClientTemplate().queryForObject("getAuthorizeByOpenId", openid);
	}
	@Override
	public boolean insert(Authorize authorize) {
		return false;
	}

}
